package com.learning.rpc_common.client;

import com.learning.rpc_common.request.RpcResponse;
import com.learning.rpc_common.sevice.UserService;

public class NettyClient {

    public static  final String providerName="UserService#sayHello#";

    public static void main(String[] args) throws InterruptedException {

        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class, providerName);
        RpcResponse response = proxy.sayHello("hi yc");
        System.out.println("hi_yc:"+response);

    }

}
